www.gusucode.com > tpframe PHP开发框架 v2.2PHP源码程序 > tpframe PHP开发框架 v2.2/tpframe_v2.2.0618/tpframe_v2.2.0618/data/runtime/temp/7b7df71895cad840f5a16e6fecc92484.php
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:37:"./theme/backend/addon\addon_list.html";i:1522733555;}*/ ?> <?php use tpfcore\Core; ?> <!doctype html> <html> <head> <meta charset="utf-8"> <!-- Set render engine for 360 browser --> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- HTML5 shim for IE8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"> </script> <![endif]--> <link href="/theme/backend/assets/css/theme.min.css" rel="stylesheet"> <link href="/theme/backend/assets/css/simplebootadmin.css" rel="stylesheet"> <link href="/theme/backend/assets/css/default.css" rel="stylesheet" /> <link href="/theme/backend/assets/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <style> .length_3 { width: 180px; } form .input-order { margin-bottom: 0px; padding: 3px; width: 40px; } .table-actions { margin-top: 5px; margin-bottom: 5px; padding: 0px; } .table-list { margin-bottom: 0px; } .status{cursor: pointer;} </style> <!--[if IE 7]> <link rel="stylesheet" href="/theme/backend/assets/css/font-awesome-ie7.min.css"> <![endif]--> <script type="text/javascript"> //全局变量 var GV = { WEB_ROOT: "", DIMAUB: "/", JS_ROOT: "/theme/backend/assets/js/", TOKEN: "" }; </script> <script src="/theme/backend/assets/js/jquery.js"></script> <script src="/theme/backend/assets/js/wind.js"></script> <script src="/theme/backend/assets/js/bootstrap.min.js"></script> <script type="text/javascript"> $(function(){ $(".status").click(function(){ $this=$(this); var data=$(this).attr("data"),src=$(this).attr("src"); var dataArr=data.split("|"),table=dataArr[0],colum=dataArr[1],key=dataArr[2],keyval=dataArr[3]; var newval=src.indexOf("btn_enable.png")>0?0:1; $.ajax({ type:"post", dataType:"json", url:"<?php echo Core::addons_url('FriendLink://FriendLink/ajaxdata'); ?>", data:{"table":table,"colum":colum,"columval":newval,"key":key,"keyval":keyval}, beforeSend:function(obj){ $this.attr("src","/data/assets/images/btn_loading.gif"); }, success:function(data){ if(data.code==1){ if(src.indexOf("btn_enable.png")>0){ $this.attr("src","/data/assets/images/btn_disable.gif"); }else{ $this.attr("src","/data/assets/images/btn_enable.png"); } }else{ alert(data.msg); } } }); }); }); </script> <!-- Le javascript==================================================- -> <!-- Placed at the end of the document so the pages load faster --> <script src="/theme/backend/assets/js/jquery.js"></script> <script src="/theme/backend/assets/js/wind.js"></script> <script src="/theme/backend/assets/js/bootstrap.min.js"></script> </head> <body> <div class="wrap js-check-wrap"> <ul class="nav nav-tabs"> <?php if(is_array($listAddonCate) || $listAddonCate instanceof \think\Collection || $listAddonCate instanceof \think\Paginator): $i = 0; $__LIST__ = $listAddonCate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <li <?php if($vo['type'] == $type): ?>class="active"<?php endif; ?>><a href="<?php echo url('Addon/addonList',['type'=>$vo['type']]); ?>"><?php echo $vo['name']; ?></a></li> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> <div class="box"> <div class="box-body"> <table class="table table-bordered table-hover"> <thead> <tr> <th>名称</th> <th>标识</th> <th>描述</th> <th>插件版本</th> <th>适用版本</th> <th>插件状态</th> <th>作者</th> <th>操作</th> </tr> </thead> <?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): ?> <tbody> <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <tr> <td><?php echo $vo['title']; ?></td> <td><?php echo $vo['name']; ?></td> <td><?php echo $vo['describe']; ?></td> <td><?php echo $vo['version']; ?></td> <td><?php echo $vo['require']; ?></td> <td> <?php if($vo['is_install'] == '1'): if($vo['status'] == '1'): ?> <img src="/data/assets/images/btn_enable.png" title="启用" class="status" data="Addon|status|id|<?php echo $vo['id']; ?>"/> <?php else: ?> <img src="/data/assets/images/btn_disable.gif" title="禁用" class="status" data="Addon|status|id|<?php echo $vo['id']; ?>"/> <?php endif; else: ?> 未安装 <?php endif; ?> </td> <td><?php echo $vo['author']; ?></td> <td> <?php if($vo['is_install'] == '1'): if($vo['ext'] == '1'): ?> <a class="btn btn-info confirm ajax-get" href='<?php echo Core::addons_url($vo['class_name']."://".$vo['handle']."/config"); ?>'><i class="fa fa-remove"></i> 配置 </a><?php endif; if($vo['type'] != 'behavior'): ?> <a class="btn btn-primary confirm ajax-get" href='<?php echo (isset($vo['manager']['url']) && ($vo['manager']['url'] !== '')?$vo['manager']['url']:''); ?>'><i class="fa"></i> <?php echo $vo['manager']['text']; ?> </a><?php endif; ?> <a class="btn btn-warning confirm ajax-get" href="<?php echo url('addonUninstall', array('name' => $vo['name'])); ?>"><i class="fa fa-remove"></i> 卸 载</a> <a class="btn-link confirm ajax-get" href="<?php echo Core::addons_url($vo['class_name']."://".$vo['handle']."/doc"); ?>">使用说明 </a> <?php else: ?> <a class="btn confirm ajax-get" href="<?php echo url('addonInstall', array('name' => $vo['name'])); ?>"><i class="fa fa-refresh"></i> 安 装</a> <?php endif; ?> </td> </tr> <?php endforeach; endif; else: echo "" ;endif; ?> </tbody> <?php else: ?> <tbody><tr class="odd"><td colspan="6" class="text-center" valign="top"><?php echo config('empty_list_describe'); ?></td></tr></tbody> <?php endif; ?> </table> </div> </div> </div> <script src="/theme/backend/assets/js/common.js"></script> </body> </html>